﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FairyWorld.Controllers
{
    public class HomeController : Controller
    {
        /// <summary>
        /// 主页跳转到登录页面
        /// </summary>
        /// <returns>登录页面</returns>
        public ActionResult Index()
        {
            if (this.HttpContext.Session["user"] == null)
            {
                return RedirectToAction("LogOn", "Account");
            }
            return RedirectToAction("Index", "User");
        }

        /// <summary>
        /// 关于我们
        /// </summary>
        /// <returns>关于我们</returns>
        public ActionResult About()
        {
            return View();
        }
    }
}
